import request from '@/utils/request'

export default {
    addVideoInfo(info) {
        return request({
            url: `/eduservice/video/addVideo`,
            method: 'post',
            data: info
        })
    },
    updateVideoInfo(info) {
        return request({
            url: `/eduservice/video/updateVideo`,
            method: 'post',
            data: info
        })
    },
    getVideoInfo(id){
        return request({
            url: `/eduservice/video/getVideo/${id}`,
            method: 'get',
        })
    },
    deleteVideoInfo(id){
        return request({
            url: `/eduservice/video/deleteVideo/${id}`,
            method: 'delete',
        })
    },
    deleteAliyunvod(id){
        return request({
            url: `/eduvod/video/deleteAlyiVideo/${id}`,
            method: 'delete',
        })
    }
}